<div class="actors form">
	<?php echo $this->Ajax->Form(array('type' => 'post',
    'options' => array(
        'model'=>'Genre',
        //'update'=>'dialog-form',
        'url' => array(
            'controller' => 'genres',
            'action' => 'add2'
        ),
		'confirm' => 'Are you sure?',
		'indicator' => 'loading',
        'before' => 'name=$("#GenreName").val();',
		'complete'=>'nuevo_genero(request.responseText);'
    )
));

?>
		<fieldset>
		<legend><?php echo __('Add Genre'); ?></legend>
	<?php
		echo $this->Form->input('name',array('div'=>(array('id'=>'div-name-genre'))));
		echo $this->Form->input('Film');
	?>
	</fieldset>
	<?php echo $this->Form->end(__('Submit'));?>
	</div>